package com.xu.security.constant;

/**
 * @Description: 通用常量
 * @Author: 许乾伟
 * @Date: 2023/8/15 13:47
 */

public class Constants {
    /**
     * 传递token字段名称
     */
    public static final String TOKEN_AUTH_HEADER = "Authorization";
    /**
     * token前缀
     */
    public static final String BEARER_TYPE = "Bearer ";
    /**
     * 登录账号key
     */
    public static final String LOGIN_ACCOUNT_KEY = "login_accounts:";
    /**
     * 登录用户token redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";
    /**
     * 1秒钟转换为毫秒单位
     */
    public static final Long MILLIS_SECOND = 1000L;
    /**
     * 1分钟转换为毫秒单位
     */
    public static final Long MILLIS_MINUTE = 60 * MILLIS_SECOND;

}
